const app = getApp();
Page({
  data: {
    userInfo:'',
  },
  toPwd: function (e) {
    wx.navigateTo({
      url: "../password/password"
    });
  },
  async getList(e) {
    let res = await wx.requestAsync({
      url: "my/myabout",
      data: {
        uid: app.globalData.user.id,
      }
    });
    let userInfo = res.res.user;
    console.log(res)
    this.setData({ userInfo });

  },
  onLoad: function (options) {
    this.getList();
  },

})